package one.stand.service;

import com.github.pagehelper.PageInfo;
import one.stand.model.ResultModel;
import one.stand.model.live.ShortVideoModel;
import one.stand.request.live.ShortVideoDataForm;
import one.stand.request.live.ShortVideoForm;
import one.stand.request.live.ShortVideoQuery;
import one.stand.request.live.SwitchVideoForm;
import one.stand.response.live.ShortVideoResponse;

import java.util.List;

/**
 * @author luoyang
 * @date 2020/5/20 11:52
 */
public interface ShortVideoService {
    ResultModel<Boolean> add(ShortVideoForm request);

    ResultModel<Boolean> update(ShortVideoForm request);

    ResultModel<ShortVideoResponse> queryById(ShortVideoQuery query);

    ResultModel<PageInfo<ShortVideoResponse>> queryByList(ShortVideoQuery query);

    ResultModel<Boolean> deleteById(Integer shortId);

    ResultModel<Boolean> updateData(ShortVideoDataForm request);

    ResultModel<Boolean> switchVideo(SwitchVideoForm request);
}
